<template>
  <div class="app">
    <el-config-provider
      :locale="useAppStoreHook().locale === 'zhCn' ? zhCn : en"
    >
      <router-view />
    </el-config-provider>
  </div>
</template>
<script lang="ts" setup>
    import { ElConfigProvider } from 'element-plus'
    import zhCn from 'element-plus/lib/locale/lang/zh-cn'
    import en from 'element-plus/lib/locale/lang/en'
    import { useAppStoreHook } from './store/modules/app' //store存放语言配置
  </script>

<style>
* {
  margin: 0;
  padding: 0;
}
body,
html {
  margin: 0;
  padding: 0;
}
</style>
